<?php
/**
 * 首页模型类
 * @author     fanlc<lingchao.fan@huatandm.com>
 * @copyright  Copyright (c) 2013,上海华探通讯技术有限公司
 * @filesource
 */
defined('IN_RCPHP') or exit('Access denied');

class newsModel extends RcModel
{

    /**
     * 构造方法 继承基类的构造方法
     * @author fanlc<lingchao.fan@huatandm.com>
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Query Meet ad info
     *
     * @author fanlc<lingchao.fan@huatandm.com>
     * @param int $mid
     * @param int $type
     * @return bool|array
     */
    public function getMeetAdInfo($mid, $type = 0)
    {
        if(empty($mid))
        {
            return false;
        }

        return $this->from('mobile_ad', "id,acrossImg AS across_image,link")
            ->where('mid = ' . intval($mid) . ' AND atype =' . intval($type))
            ->fetchRow();
    }
}